.class public Lcom/instagram/android/d/g/f;
.super Lcom/instagram/android/d/k/b;
.source "ConfigureMediaRequest.java"


# instance fields
.field private a:Lcom/instagram/pendingmedia/model/c;

.field private b:Lcom/fasterxml/jackson/databind/ObjectMapper;


# direct methods
.method public constructor <init>(Lcom/instagram/pendingmedia/model/c;)V
    .locals 3
    .parameter

    .prologue
    .line 46
    invoke-direct {p0}, Lcom/instagram/android/d/k/b;-><init>()V

    .line 47
    iput-object p1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    .line 49
    new-instance v0, Lcom/fasterxml/jackson/databind/module/SimpleModule;

    const-string v1, "ConfigureModule"

    invoke-static {}, Lcom/fasterxml/jackson/a/w;->a()Lcom/fasterxml/jackson/a/w;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/fasterxml/jackson/databind/module/SimpleModule;-><init>(Ljava/lang/String;Lcom/fasterxml/jackson/a/w;)V

    .line 50
    new-instance v1, Lcom/instagram/pendingmedia/a/r;

    invoke-direct {v1}, Lcom/instagram/pendingmedia/a/r;-><init>()V

    invoke-virtual {v0, v1}, Lcom/fasterxml/jackson/databind/module/SimpleModule;->addSerializer(Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;

    .line 51
    new-instance v1, Lcom/instagram/model/people/a/b;

    invoke-direct {v1}, Lcom/instagram/model/people/a/b;-><init>()V

    invoke-virtual {v0, v1}, Lcom/fasterxml/jackson/databind/module/SimpleModule;->addSerializer(Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;

    .line 52
    new-instance v1, Lcom/fasterxml/jackson/databind/ObjectMapper;

    invoke-virtual {p0}, Lcom/instagram/android/d/g/f;->j()Lcom/fasterxml/jackson/a/e;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/fasterxml/jackson/databind/ObjectMapper;-><init>(Lcom/fasterxml/jackson/a/e;)V

    invoke-virtual {v1, v0}, Lcom/fasterxml/jackson/databind/ObjectMapper;->registerModule(Lcom/fasterxml/jackson/databind/Module;)Lcom/fasterxml/jackson/databind/ObjectMapper;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/d/g/f;->b:Lcom/fasterxml/jackson/databind/ObjectMapper;

    .line 53
    return-void
.end method

.method private a(Ljava/util/List;)Ljava/lang/String;
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/model/people/PeopleTag;",
            ">;)",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .line 226
    new-instance v0, Ljava/io/StringWriter;

    invoke-direct {v0}, Ljava/io/StringWriter;-><init>()V

    .line 227
    invoke-virtual {p0}, Lcom/instagram/android/d/g/f;->j()Lcom/fasterxml/jackson/a/e;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/fasterxml/jackson/a/e;->createGenerator(Ljava/io/Writer;)Lcom/fasterxml/jackson/a/h;

    move-result-object v1

    .line 229
    invoke-virtual {v1}, Lcom/fasterxml/jackson/a/h;->writeStartObject()V

    .line 230
    const-string v2, "in"

    invoke-virtual {v1, v2}, Lcom/fasterxml/jackson/a/h;->writeFieldName(Ljava/lang/String;)V

    .line 231
    iget-object v2, p0, Lcom/instagram/android/d/g/f;->b:Lcom/fasterxml/jackson/databind/ObjectMapper;

    invoke-virtual {v2, v1, p1}, Lcom/fasterxml/jackson/databind/ObjectMapper;->writeValue(Lcom/fasterxml/jackson/a/h;Ljava/lang/Object;)V

    .line 232
    invoke-virtual {v1}, Lcom/fasterxml/jackson/a/h;->writeEndObject()V

    .line 233
    invoke-virtual {v1}, Lcom/fasterxml/jackson/a/h;->close()V

    .line 235
    invoke-virtual {v0}, Ljava/io/StringWriter;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private a(Lcom/instagram/android/d/b/b;Lcom/instagram/pendingmedia/model/a;I)V
    .locals 7
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x1

    .line 206
    const-string v2, "clip%d_length"

    new-array v3, v0, [Ljava/lang/Object;

    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v1

    invoke-static {v2, v3}, Lcom/instagram/n/i;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p2}, Lcom/instagram/pendingmedia/model/a;->h()I

    move-result v3

    int-to-double v3, v3

    const-wide v5, 0x408f400000000000L

    div-double/2addr v3, v5

    invoke-virtual {p1, v2, v3, v4}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;D)V

    .line 209
    invoke-virtual {p2}, Lcom/instagram/pendingmedia/model/a;->c()I

    move-result v2

    const/4 v3, -0x1

    if-eq v2, v3, :cond_0

    .line 210
    const-string v2, "clip%d_source"

    new-array v3, v0, [Ljava/lang/Object;

    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v1

    invoke-static {v2, v3}, Lcom/instagram/n/i;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p2}, Lcom/instagram/pendingmedia/model/a;->c()I

    move-result v3

    if-ne v3, v0, :cond_1

    :goto_0
    invoke-static {v0}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v2, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 215
    :cond_0
    return-void

    :cond_1
    move v0, v1

    .line 210
    goto :goto_0
.end method

.method private b(Lcom/instagram/android/d/b/b;)V
    .locals 2
    .parameter

    .prologue
    .line 182
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->D()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 183
    const-string v0, "extra"

    invoke-virtual {p1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;)V

    .line 185
    const-string v0, "source_width"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->E()I

    move-result v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;I)V

    .line 186
    const-string v0, "source_height"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->F()I

    move-result v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;I)V

    .line 188
    invoke-virtual {p1}, Lcom/instagram/android/d/b/b;->a()V

    .line 191
    :cond_0
    return-void
.end method

.method private c(Lcom/instagram/android/d/b/b;)V
    .locals 2
    .parameter

    .prologue
    .line 194
    const-string v0, "device"

    invoke-virtual {p1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;)V

    .line 196
    const-string v0, "manufacturer"

    sget-object v1, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 197
    const-string v0, "model"

    sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 198
    const-string v0, "android_version"

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;I)V

    .line 199
    const-string v0, "android_release"

    sget-object v1, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 201
    invoke-virtual {p1}, Lcom/instagram/android/d/b/b;->a()V

    .line 203
    return-void
.end method


# virtual methods
.method protected a(Lcom/instagram/android/d/b/b;)V
    .locals 3
    .parameter

    .prologue
    .line 71
    const-string v0, "caption"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->s()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 72
    const-string v0, "upload_id"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 74
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->c()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v1, :cond_0

    .line 75
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->G()Ljava/util/List;

    move-result-object v2

    .line 76
    const/4 v0, 0x0

    move v1, v0

    :goto_0
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    .line 77
    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/a;

    invoke-direct {p0, p1, v0, v1}, Lcom/instagram/android/d/g/f;->a(Lcom/instagram/android/d/b/b;Lcom/instagram/pendingmedia/model/a;I)V

    .line 76
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    .line 82
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->d()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 97
    const-string v0, "4"

    .line 101
    :goto_1
    const-string v1, "source_type"

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 102
    const-string v0, "filter_type"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->e()I

    move-result v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 104
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->l()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 105
    const-string v0, "geotag_enabled"

    const-string v1, "1"

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 106
    const-string v0, "media_latitude"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->n()Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Double;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 107
    const-string v0, "media_longitude"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->o()Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Double;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 110
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->f()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 111
    invoke-static {}, Lcom/instagram/android/u/a;->b()Lcom/instagram/android/u/a;

    move-result-object v0

    .line 112
    invoke-virtual {v0}, Lcom/instagram/android/u/a;->h()Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_2
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 113
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 84
    :pswitch_0
    invoke-static {}, Lcom/instagram/m/a/b;->a()Lcom/instagram/m/a/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/m/a/b;->e()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 85
    const-string v0, "3"

    goto/16 :goto_1

    .line 87
    :cond_2
    const-string v0, "5"

    goto/16 :goto_1

    .line 92
    :pswitch_1
    const-string v0, "6"

    goto/16 :goto_1

    .line 117
    :cond_3
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->g()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 118
    invoke-static {}, Lcom/instagram/android/i/a;->b()Lcom/instagram/android/i/a;

    move-result-object v0

    .line 119
    invoke-virtual {v0}, Lcom/instagram/android/i/a;->d()Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_3
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 120
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_3

    .line 124
    :cond_4
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->h()Z

    move-result v0

    if-eqz v0, :cond_6

    .line 125
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v1

    .line 126
    invoke-static {}, Lcom/instagram/android/g/b;->h()Lcom/instagram/android/model/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/c;->a()Ljava/lang/String;

    move-result-object v0

    .line 127
    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 129
    invoke-virtual {v1}, Lcom/facebook/a/b;->c()Ljava/lang/String;

    move-result-object v0

    .line 132
    :cond_5
    const-string v1, "share_to_facebook"

    const-string v2, "1"

    invoke-virtual {p1, v1, v2}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 133
    const-string v1, "fb_access_token"

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 136
    :cond_6
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->i()Z

    move-result v0

    if-eqz v0, :cond_7

    .line 137
    invoke-static {}, Lcom/instagram/android/foursquare/a;->a()Lcom/instagram/android/foursquare/a;

    move-result-object v0

    .line 139
    const-string v1, "share_to_foursquare"

    const-string v2, "1"

    invoke-virtual {p1, v1, v2}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 140
    const-string v1, "foursquare_access_token"

    invoke-virtual {v0}, Lcom/instagram/android/foursquare/a;->d()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 143
    :cond_7
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->j()Z

    move-result v0

    if-eqz v0, :cond_8

    .line 144
    invoke-static {}, Lcom/instagram/android/t/a;->b()Lcom/instagram/android/t/a;

    move-result-object v0

    .line 146
    const-string v1, "share_to_tumblr"

    const-string v2, "1"

    invoke-virtual {p1, v1, v2}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 147
    const-string v1, "tumblr_access_token_key"

    invoke-virtual {v0}, Lcom/instagram/android/t/a;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v1, v2}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 148
    const-string v1, "tumblr_access_token_secret"

    invoke-virtual {v0}, Lcom/instagram/android/t/a;->f()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 151
    :cond_8
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->k()Z

    move-result v0

    if-eqz v0, :cond_9

    .line 152
    invoke-static {}, Lcom/instagram/android/w/a;->a()Lcom/instagram/android/w/a;

    move-result-object v0

    .line 153
    invoke-virtual {v0}, Lcom/instagram/android/w/a;->g()Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_4
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_9

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 154
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_4

    .line 158
    :cond_9
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->p()Lcom/instagram/venue/model/Venue;

    move-result-object v0

    .line 159
    if-eqz v0, :cond_a

    .line 161
    :try_start_0
    const-string v1, "location"

    iget-object v2, p0, Lcom/instagram/android/d/g/f;->b:Lcom/fasterxml/jackson/databind/ObjectMapper;

    invoke-virtual {v2, v0}, Lcom/fasterxml/jackson/databind/ObjectMapper;->writeValueAsString(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    .line 163
    :goto_5
    const-string v0, "foursquare_request_id"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->J()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 166
    :cond_a
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->C()Z

    move-result v0

    if-eqz v0, :cond_b

    .line 168
    :try_start_1
    const-string v0, "usertags"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->B()Lcom/instagram/model/people/b;

    move-result-object v1

    invoke-direct {p0, v1}, Lcom/instagram/android/d/g/f;->a(Ljava/util/List;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    .line 172
    :cond_b
    :goto_6
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->c()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v1, :cond_c

    .line 173
    const-string v0, "video_result"

    iget-object v1, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->z()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 176
    :cond_c
    invoke-direct {p0, p1}, Lcom/instagram/android/d/g/f;->b(Lcom/instagram/android/d/b/b;)V

    .line 177
    invoke-direct {p0, p1}, Lcom/instagram/android/d/g/f;->c(Lcom/instagram/android/d/b/b;)V

    .line 179
    return-void

    .line 169
    :catch_0
    move-exception v0

    goto :goto_6

    .line 162
    :catch_1
    move-exception v0

    goto :goto_5

    .line 82
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public e()Z
    .locals 1

    .prologue
    .line 66
    const/4 v0, 0x1

    return v0
.end method

.method public f()Ljava/lang/String;
    .locals 2

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/d/g/f;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->c()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v1, :cond_0

    .line 58
    const-string v0, "media/configure/?video=1"

    .line 60
    :goto_0
    return-object v0

    :cond_0
    const-string v0, "media/configure/"

    goto :goto_0
.end method
